/*
 * $Id: JdtConverter.java 30 2006-06-08 13:26:40Z wjx $
 */
package com.someok.utils.datetime;

/**
 * Interface for various converters from/to JDateTime.
 *
 * <p><a href="JdtConverter.java.html"><i>View Source</i></a></p>
 *
 * @version $Revision: 30 $ $Date: 2006-06-08 21:26:40 +0800 (星期四, 08 六月 2006) $
 */
public interface JdtConverter {

	/**
	 * Loads time information from object to JDateTime
	 *
	 * @param jdt
	 * @param o
	 */
	public void load(JDateTime jdt, Object o);

	/**
	 * Creates a new instance of specified class and loads it with the time
	 * information from JDateTime.
	 *
	 * @param jdt
	 *
	 * @return new instance of specified class populated with time information
	 * @see #store
	 */
	public Object get(JDateTime jdt);


	/**
	 * Stores time information to object.
	 *
	 * @param jdt
	 * @param o
	 */
	public void store(JDateTime jdt, Object o);

}
